/*
 * @(#)RedisBase.java 2014-10-11 下午1:26:11
 * Copyright 2014 鲍建明, Inc. All rights reserved. 8637.com
 * PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package cn.singno.bob.redis.base;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * <p>File：RedisBase.java</p>
 * <p>Title: </p>
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) 2014 2014-10-11 下午1:26:11</p>
 * <p>Company: 8637.com</p>
 * @author 鲍建明
 * @version 1.0
 */
public class RedisBase33<K extends Serializable, V> 
{

	@Autowired
	private RedisTemplate<K, V> redisTemplate;
	
	public void save(V value){
		redisTemplate.opsForValue().set((K)"12345", value);
	}
	
	public V get(K k){
		return redisTemplate.opsForValue().get(k);
	}
	
}
